package com.bdqn.t320.ch12.service;

import com.bdqn.t320.ch12.entity.Right;
import com.bdqn.t320.ch12.repository.RightRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RightServiceImp implements RightService {

    @Resource
    RightRepository rightRepository;

    @Override
    public List<Right> getRightAllBiz() {
        return rightRepository.getRightAll();
    }

    @Override
    public List<Right> getRightByUsrIdBiz(Long usrId) {
        return rightRepository.getRightByUsrId(usrId);
    }
}
